<script setup lang="ts">
    import {ref,reactive} from 'vue'
    //子组件的数据=>传给父组件
    let cat = ref('奖状')

    //接受父组件传过来的数据
    defineProps(['dogData','ageData','sendFather'])

</script>
<template>
    <h3>Props-子组件</h3>
    <h4>父给子的狗的小名是:{{dogData}},年龄是:{{ageData}}</h4>
    <button @click="sendFather(cat)">子传父</button>
</template>
<style scoped>
   
</style>